home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
comm
/
news
/
slrn-bin.lha
/
slrn
/
doc
/
tm
/
slrnfuns
/
keys.tm
< prev
next >
Wrap
Text File
|
1999-04-27
|
3KB
|
97 lines
\function{call}
\synopsis{-}
\usage{Void call (String fun)}
\description
This function is used to execute an interactive slrn internal
function. Such functions are used with \var{setkey} statements in the
\var{.slrnrc} startup files.
\seealso{definekey, undefinekey, set_prefix_argument}
\done
\function{definekey}
\synopsis{-}
\usage{definekey (String fun, String key, String km)}
\description
This function is used to bind a key sequence specified by \var{key} to
a function \var{fun} in the keymap \var{km}. Here \var{fun} can be any
predefined slang function that takes 0 arguments and returns void.
The parameter \var{km} must be either "article", "group", or "readline".
\seealso{undefinekey, call, set_prefix_argument}
\done
\function{get_prefix_arg}
\synopsis{Get the value of the prefix argument}
\usage{Int_Type get_prefix_arg ()}
\description
The \var{get_prefix_arg} function returns the value of the prefix
argument. If no prefix argument has been set, the function returns
\var{-1}, which is an impossible value for the prefix argument.
\notes
The prefix argument is specified interactively via the ESC key
followed by one or more digits that determine value of the prefix
argument.
This concept has been borrowed from the emacs text editor.
\seealso{set_prefix_argument, reset_prefix_arg}
\done
\function{getkey}
\synopsis{-}
\usage{Integer getkey ()}
\description
Read a character from the terminal and returns its value.
Note: Function and arrow keys usually return more than one character.
\seealso{ungetkey, input_pending, read_mini}
\done
\function{input_pending}
\synopsis{-}
\usage{Integer input_pending (Integer tsecs)}
\description
This function checks for keyboard input. Its argument specifies
the number of tenths of a second to wait. It returns 0 if no input
is available or a non-sero value if input is available.
\seealso{getkey, ungetkey}
\done
\function{reset_prefix_arg}
\synopsis{Cancel the prefix argument}
\usage{Void reset_prefix_arg ()}
\description
The \var{reset_prefix_arg} function may be used to reset the prefix
argument. This is usually necessary after calling to keep the
argument from propagating to other functions.
\seealso{get_prefix_arg, set_prefix_argument}
\done
\function{set_prefix_argument}
\synopsis{-}
\usage{Void set_prefix_argument (Integer val)}
\description
The \var{set_prefix_argument} function may be used to set the prefix
argument to \var{val}. It is mainly used immediately before
\var{calling}
internal functions which take prefix arguments.
\seealso{call}
\done
\function{undefinekey}
\synopsis{-}
\usage{Void undefinekey (String key, String map)}
\description
This function undefineds a key sequence specified by \var{key} from
keymap \var{map}.
\seealso{definekey}
\done
\function{ungetkey}
\synopsis{-}
\usage{Void ungetkey (Integer ch)}
\description
This function pushes the character \var{ch} back upon the input stream
such that the next call to \var{getkey} will return it. It is possible
to push several characters back.
\seealso{getkey}
\done